import request from '@/utils/request'

// 查询流程管理-计量流程定义列表
export function listMeterage(query) {
  return request({
    url: '/workflow/meterage/list',
    method: 'get',
    params: query
  })
}

// 查询流程管理-计量流程定义详细
export function getMeterage(workflowUuid) {
  return request({
    url: '/workflow/meterage/' + workflowUuid,
    method: 'get'
  })
}

// 新增流程管理-计量流程定义
export function addMeterage(data) {
  return request({
    url: '/workflow/meterage',
    method: 'post',
    data: data
  })
}

// 粘贴流程管理-计量流程定义
export function pasteMeterage(data) {
  return request({
    url: '/workflow/meterage/paste',
    method: 'post',
    data: data
  })
}

// 修改流程管理-计量流程定义
export function updateMeterage(data) {
  return request({
    url: '/workflow/meterage',
    method: 'put',
    data: data
  })
}

// 删除流程管理-计量流程定义
export function delMeterage(workflowUuid) {
  return request({
    url: '/workflow/meterage/' + workflowUuid,
    method: 'delete'
  })
}

// 导出流程管理-计量流程定义
export function exportMeterage(query) {
  return request({
    url: '/workflow/meterage/export',
    method: 'get',
    params: query
  })
}
